package com.rimi.service.impl;

import com.rimi.bean.MenuBean;
import com.rimi.dao.MenuDao;
import com.rimi.dao.impl.MenuDaoImpl;
import com.rimi.service.MenuService;

import java.util.List;

public class MenuServiceImpl implements MenuService {

    private MenuDao menuDao=new MenuDaoImpl();

    @Override
    public List<MenuBean> getMenuList() {
        return menuDao.selectMenuList();
    }

    @Override
    public List<MenuBean> getMenuListByRoleId(Integer roleId) {
        return menuDao.selectMenuListByRoleId(roleId);
    }




}
